unit tests for commit a051d38