writing out test code