added utils file with tests