added helper file for use in tests. not all tests passing apart from like functionality