added integration test
fix missing return