"I wish I were" is considered higher register, which is what should be used in a test situation. However, many say "I wish I was". My advice is to use "were" unless everyone around you is using "was".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.