Add unit tests for status API