adding tests
trimmed versions of tests for use with valgrind