singn in and out with tests