Closes #27 Adding tests for metadata/database