#7 test for api and validators