complete test REST, need to clean up but working