Added test (needs testing).