add unit tests for languages api view