Take the cube and throw it on the button.
Go through the exit door.
Alternative Solutions
These solutions require trapping yourself in the test chamber.
Alternative Solution 1
Throw the cube into the goo.
Go through the exit door.
Alternative Solution 2
Jump into the goo while holding the cube.
Wait until you are revived, then go through the exit door.