Fix and add test in LevelComponent on the server side.

Before
3 tests, 7 assertions, 3 failures

After
10 tests, 61 assertions, 0 failures