Add get_record method and tests
Added unabridged test
Some refactoring. Just need filtering now