On the Title Screen, while Press Start Button is flashing, press 1, 1, 2, 2, 2. After that, hold Left and press Start. You will have access to a sound/music test, stage select, and invincibility.
Wait 'till the time reaches 100 to gain extra lives.
Enter the password for the corresponding level.