added sample unit tests for rest