add unit tests for response