adding test for invalid level