Written unit test for api + automation in .bats