add tests for memory plugin