properly defined and working tests
TODO: switch over to junit