working tests and additional testing code