added unit tests for Tests model