Close database before deleting it (this was causing an error on android)

Also fix a fixture loading bug in load_data_from_file_with_really_long_last_sequence
Merge branch 'run_tests_on_android' of github.com:cloudant/sync-android into run_tests_on_android