removed dependency on window context in unit tests