Removed bad assertion tests, fixed type checking for pins error

The endpoint now passes the tests.