Some server tests and fixed build.xml. This took way to long to just write some tests :(