storage tests and implementation