updated unit tests to include api testing close #55