functional test, pending mongo implementation