Add storage testsuite and fix discovered errors.