refactor(inline tests): inline the test functions