added tests for level
fix test