Reviewed functional tests. Updated API tests according to #53.