Added tests for position class and some other things