Feature unit test fix

refs #175 

Changed system.api from throwing api errors for set/delete to reply packets with an `action` field of `badAction`

Put in new unit tests for system.api