need to work out better testing functions for parsing