Added some tests

Fixed the schema for the users table