Moved inline test cases to unit tests