Fixed errors in tests that cause compile problems