adapt test to actions

todo: write more tests.