write tests for api class
add test for api checking method_missing