enhance domain objects

add unit tests for functions
add unit test for json parser
add mock tests for RemoteApi