fix typo in level.go
add level test