fix bug found in testing (return parsed result instead of data)
debug
added tests