copied acceptance tests and changed to call into Java library