Added tests

@JBlaak Also changed the existing spec-test to one that makes sense(checks numerical input, not strings)