added test, created API