split out api and added test client project