testing creation of expense with valid and invalid values