Added & updated some EMR unit tests

I've updated some unit tests so they actually check what's returned (rather than just what the API is being called with)

I've also added some unit tests for things that were missing.