Elsevier interview question

How to test code without use of database?