Add tests to Memoclass