Added primitive tests
Added primitive tests
Added degrade and improve functions