tests for user input and db storage