add all test cases and main lib for REST full testing