records: API test case addition

* In response to 5daee2f, adds a new test-case to make sure
  an exception is raised when Record.create is called with bad
  data.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>